package com.um.jdy.app.device.controller;


import com.um.jdy.app.device.entity.vo.HomePackageVO;
import com.um.jdy.app.device.manager.AppPackageManager;
import com.um.jdy.common.platform.entity.vo.AppPackageVO;
import com.um.springboot.starter.orm.entity.Response;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Api(tags = "平台套餐")
@RestController
@RequestMapping("/api/v1/device/app_package")
public class AppPackageController {

    @Autowired
    AppPackageManager appPackageManager;

    @ApiOperation("查询平台可以使用的设备类型")
    @GetMapping("get")
    public Response<HomePackageVO> getAppPackage() {
        return appPackageManager.getAppPackage();
    }

}
